//
//  YSModelTool.h
//  YSSqliteTool_Example
//
//  Created by Kyson on 2018/12/4.
//  Copyright © 2018 kysonyangs. All rights reserved.
//
//  模型操作工具类

#import <Foundation/Foundation.h>
#import "YSModelProtocol.h"

@interface YSModelTool : NSObject

+ (NSString *)tableName:(Class)cls;

+ (NSString *)tmpTableName:(Class)cls;

// 所有成员变量字段与类型
+ (NSDictionary *)classIvarNameTypeDic:(Class)cls;

// 所有成员变量字段与类型 映射数据库
+ (NSDictionary *)classIvarNameSqliteTypeDic:(Class)cls;

+ (NSString *)columnNamesAndTypesStr:(Class)cls;

+ (NSArray *)allTableSortedIvarName:(Class)cls;

@end
